﻿using System;
using Runtime.Services.Battle.Entity;

namespace Runtime.Services.Battle {

    /// <summary>
    /// 战斗单子元素数据
    /// </summary>
    public interface IDFR_BattleGridElementModel {

        /// <summary>
        /// 句柄
        /// </summary>
        DFR_BattleCellIndex Index { get; }

        /// <summary>
        /// 坐标
        /// </summary>
        DFR_BattleCellAxis Axis { get; }

        /// <summary>
        /// 魔物实例ID
        /// </summary>
        IReadOnlyData<DFR_BattleEntityInstanceID> ContentEntityInstanceID { get; }

        /// <summary>
        /// 是否已经有魔物
        /// </summary>
        bool HasContent();

        /// <summary>
        /// 是否已经有<paramref name="playerID"/>的魔物
        /// </summary>
        /// <param name="playerID">玩家ID</param>
        bool HasContent(DFR_BattlePlayerID playerID);
    }
}
